<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">
<f:view>

	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link type="text/css" rel="stylesheet" href="css/default.css" />
		<link type="text/css" rel="stylesheet" href="themes/owner/skin.css" />
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	font-family: Calibri, Arial, Helvetica, sans-serif;
	font-size: 90%;
}
.ui-widget {
	font-size: 75%;
}.ui-widget {
	font-size: 75%;
}
.Estilo1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	color: #333333;
}
-->
</style>
		<script>
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

function Abrir_ventana (pagina) {
var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=508, height=465, top=85, left=140";
window.open(pagina,"",opciones);
}

</script>
	</h:head>

	<body
		onload="MM_preloadImages('imagenes/acp2.png','imagenes/acpri2.png','imagenes/re2.png','imagenes/res2.png','imagenes/regis2.png','imagenes/acp1.png','imagenes/acpr2.png','imagenes/rs2.png','imagenes/rest2.png')">
		<p:dialog modal="true" widgetVar="statusDialog" closeOnEscape="false"
			header="Ingresando al sistema" draggable="false" closable="false">
			<p:graphicImage value="/design/ajaxloadingbar.gif" />
		</p:dialog>
		<h:form>
			<p:growl life="5000" showDetail="true" id="msj" />
			<table width="227" border="0" cellpadding="0" cellspacing="0">
				<!--DWLayoutTable-->
				<tr>
					<td width="227" height="58" valign="top">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<!--DWLayoutTable-->
							<tr>
								<td width="227" height="44" valign="top"><table
										width="100%" border="0" cellpadding="0" cellspacing="0">
										<!--DWLayoutTable-->
										<tr>
											<td width="28" height="13">&nbsp;</td>
											<td width="84">&nbsp;</td>
											<td width="89">&nbsp;</td>
											<td width="26">&nbsp;</td>
										</tr>
										<tr>
											<td height="31">&nbsp;</td>
											<td valign="top"><a href="#"
												onmouseout="MM_swapImgRestore()"
												onmouseover="MM_swapImage('Image6','','imagenes/acp1.png',1)">
													<img src="imagenes/ac2.png" name="Image6" width="83"
													height="31" border="0" id="Image6" /> </a></td>

											<td align="right" valign="top"><a
												href="usuarioPrivado.jsf" onmouseout="MM_swapImgRestore()"
												onmouseover="MM_swapImage('Image2','','imagenes/acpri2.png',1)">
													<img src="imagenes/bp0.png" width="83" height="31"
													border="0" /> </a></td>
											<td>&nbsp;</td>
										</tr>
									</table></td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td height="10"></td>
				</tr>
				<tr>
					<td height="124" valign="top">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<!--DWLayoutTable-->
							<tr>
								<td width="34" height="124">&nbsp;</td>
								<td width="155" valign="top">

									<table>
										<tr>
											<td align="left"><h:outputText
													value="Tipo de documento:  " id="tipodocumento"
													styleClass="Estilo1" /><br /> <h:selectOneListbox
													id="tipodni" styleClass="Estilo1"
													value="#{personaBM.idTipoDocumento}" size="1">
													<f:selectItems value="#{personaBM.listaDocumentoIdentidad}" />
													<p:ajax update="txtPersona" process="tipodni"
														event="change" actionListener="#{personaBM.tamañoCaja}" />
												</h:selectOneListbox>
											</td>
										</tr>
										<tr>
											<td align="left"><h:outputText
													value="Número de documento:  " id="usuario"
													styleClass="Estilo1" /><br /> <p:inputMask
													id="txtPersona" styleClass="Estilo1"
													value="#{personaBM.usuarioPersona}"
													mask="#{personaBM.formatInputMask}" required="true"
													requiredMessage="Ingrese el numero de documento" /> <p:message
													for="txtPersona" />
											</td>
										</tr>
										<tr>
											<td align="left"><h:outputText value="Contraseña:  "
													id="txtClaveUA" styleClass="Estilo1" /><br />
													<p:password feedback="false" styleClass="Estilo1" 
													value="#{personaBM.objPersona.contrasenia}" required="true"
													requiredMessage="Ingrese la contraseña"/> 
											</td>
										</tr>
										<tr>
											<td><h:commandButton value="Ingresar"
													title="Ingresar al sistema" styleClass="Estilo1"
													action="#{personaBM.loginAdministrado}"
													onclick="statusDialog.show();" update="msj" />
											</td>
										</tr>
									</table>
								</td>
								<td width="34">&nbsp;</td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td height="10"></td>
				</tr>
				<tr>
					<td height="55" valign="top">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<!--DWLayoutTable-->
							<tr>
								<td width="50%" height="42" align="center" valign="top"><h:commandLink
										action="#{personaBM.irRegistrarPersona}"
										onmouseout="MM_swapImgRestore()" immediate="true"
										onmouseover="MM_swapImage('Image4ua','','imagenes/regis2.png',1)">
										<img src="imagenes/regis.png" name="Image4" width="70"
											height="23" border="0" id="Image4ua" />
									</h:commandLink></td>
								<td width="50%" height="42" align="center" valign="top"><a
									href="javascript:Abrir_ventana('recuperarContrasenia.jsf')"
									onmouseover="MM_swapImage('Image5','','imagenes/rest2.png',1)"
									onmouseout="MM_swapImgRestore()"> <img
										src="imagenes/res1.png" name="Image5" width="70" height="23"
										border="0" id="Image5" /> </a></td>
							</tr>
						</table></td>
				</tr>
			</table>
		</h:form>
	</body>






</f:view>
</html>